QuickTime 3 Reference

Previous | Chapter Top | Chapter Contents | Next

Connecting to the Base Video Output Component

To use the services of the base video output component, your video output component must open a connection to the base video output component. It does this in its routine for processing open requests from the Component Manager. How to connect to the base video output component is shown in Listing 4 .

Listing 4 Connecting to the base video output component

QTVideoOutputComponent baseVideoOutput;
OSErr err;

err = OpenADefaultComponent (kVideoOutputComponentType,
kVideoOutputComponentBaseSubType,
&baseVideoOutput);

err = ComponentSetTarget (baseVideoOutput,
self);

globals->baseVideoOutput = baseVideoOutput;

© 1997 Apple Computer, Inc.

Previous | Chapter Top | Chapter Contents | Next